<html>
<head>

    <script type="text/javascript">
        chrome.extension.onRequest.addListener(function(request, sender, sendResponse)
        {
            switch (request.command)
            {
                case 'BMN_DoSubmit':
                    {
                        //debugger;
                        var list = chrome.extension.getViews();
                        for (var i = 0; i < list.length; i++)
                        {
                            var item = list[i];
                            alert(item.document.title);
                            //item.document.write('asdasda');
                        }
                        break;
                    }
            }
        });
    </script>

</head>
<body>
</body>
</html>
